﻿package mortal.game.view.common.tooltip.tooltips
{
    import Message.DB.Tables.*;
    import com.mui.controls.*;
    import mortal.game.view.common.*;

    public class ToolTipFuncPre_Picture extends GSprite implements IToolTip
    {
        private var _bmp:GImageBitmap;
        private var _title:GImageBitmap;

        public function ToolTipFuncPre_Picture()
        {
            return;
        }// end function

        public function set data(param1) : void
        {
            var _loc_2:* = param1 as TSystemTrailer;
            this._bmp.imgUrl = "funcPrePic" + _loc_2.system;
            this._title.onLoadCompl = this.resetPlace;
            this._title.imgUrl = "funcPreTitle" + _loc_2.system;
            return;
        }// end function

        private function resetPlace() : void
        {
            if (isDisposed)
            {
                return;
            }
            this._title.x = 174 - this._title.width / 2;
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            this._bmp = UIFactory.gImageBitmap(null, 0, 0, this);
            this._title = UIFactory.gImageBitmap(null, 0, 16, this);
            return;
        }// end function

        override protected function disposeImpl(param1:Boolean = true) : void
        {
            super.disposeImpl(param1);
            this._bmp.dispose(param1);
            this._bmp = null;
            this._title.dispose(param1);
            this._title = null;
            return;
        }// end function

    }
}
